|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.http.HttpConnector
public class HttpConnector
The HTTP connection strategy.
| Field Summary | |
|---|---|
static java.lang.String |
ABORT_PATH
The path info for aborting a session. |
static java.lang.String |
INDEX_PATH
The path info prefix for the deployment index. |
static java.lang.String |
NEXT_PATH
The path info for the next step in a session. |
static java.lang.String |
PATH_PREFIX
The path prefix for reserved commands. |
static java.lang.String |
RESOURCES_PATH
The path info for binary resources. |
| Constructor Summary | |
|---|---|
HttpConnector(org.osgi.service.log.LogService log,
IProcessEngine engine,
org.osgi.service.http.HttpService httpService,
IReporter reporter)
Creates a new HttpConnector. |
|
| Method Summary | |
|---|---|
void |
configure(java.util.Dictionary properties)
Configures the basic properties of this connector. |
void |
deploy(java.lang.String key,
java.util.Dictionary properties)
Deploys a process into the engine. |
java.lang.String |
getMimeType(java.lang.String resourcePath)
The MIME type for the specified resource. |
java.net.URL |
getResource(java.lang.String resourcePath)
Returns the resource at the specified path. |
void |
process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Processes an HTTP request. |
void |
registerDefinition(java.lang.String definitionID,
IProcessDefinition definition,
org.osgi.framework.Bundle contributor)
Registers a process definition with this connector. |
void |
registerResouces(java.lang.String resourcesID,
ResourceGroup resources)
Registers a resource group with this connector. |
void |
releaseDefinition(java.lang.String definitionID)
Releases a process definition in this connector. |
void |
releaseResouces(java.lang.String resourcesID)
Releases a resource group in this connector. |
void |
undeploy(java.lang.String key)
Undeploys a process from the engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_PREFIX
public static final java.lang.String ABORT_PATH
public static final java.lang.String INDEX_PATH
public static final java.lang.String NEXT_PATH
public static final java.lang.String RESOURCES_PATH
| Constructor Detail |
|---|
public HttpConnector(org.osgi.service.log.LogService log,
IProcessEngine engine,
org.osgi.service.http.HttpService httpService,
IReporter reporter)
engine - The process engine to use.httpService - The HTTP service to use.| Method Detail |
|---|
public void registerDefinition(java.lang.String definitionID,
IProcessDefinition definition,
org.osgi.framework.Bundle contributor)
definitionID - The ID of the definition to register.definition - The definition to register.public void releaseDefinition(java.lang.String definitionID)
definitionID - The ID of the definition to release.
public void registerResouces(java.lang.String resourcesID,
ResourceGroup resources)
resourcesID - The ID of the resource group to register.resources - The resource group to register.public void releaseResouces(java.lang.String resourcesID)
resourcesID - The ID of the resource group to release.public void configure(java.util.Dictionary properties)
properties - The basic configuration properties.
public void deploy(java.lang.String key,
java.util.Dictionary properties)
key - The key for the deployment.properties - The properties of the deployment.public void undeploy(java.lang.String key)
key - The key for the deployment.
public void process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
req - The HTTP request.res - The HTTP response.
javax.servlet.ServletException - If the processing fails.
java.io.IOException - If the connection fails.public java.lang.String getMimeType(java.lang.String resourcePath)
resourcePath - The resource to determine the MIME type of.
public java.net.URL getResource(java.lang.String resourcePath)
resourcePath - The path of the resource to return.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||